package com.rayo.accesscontrollercopy.model.db.dao;

import com.rayo.accesscontrollercopy.model.db.bean.KeyData;

import java.util.List;

/**
 * Created by lyc-pc on 17/5/12.
 */

public interface KeyDataDao {
    KeyData getKeyDataByPos(int pos,int adress);
    void addKeyData(KeyData keyData);
    void updateKeyData(KeyData keyData);
    KeyData getKeyDataByTagId(String tagId);
    List<KeyData> getKeyDataByKeyBoxId(int keyboxId);
    KeyData getKeyDataBySerialnumber(String serialnumber);
    void deleteAll();
    List<KeyData>getAll();
    List<KeyData>getAllKey();
    void delete(KeyData keyData);
}
